# -*- coding: utf-8 -*-
"""
API文档定义
"""

SIMPLE_DOC = {
    "tags": ["订单管理"],
    "summary": "API接口",
    "description": "API接口说明",
    "responses": {
        "200": {
            "description": "请求成功",
            "schema": {
                "type": "object",
                "properties": {
                    "code": {"type": "integer", "example": 200},
                    "message": {"type": "string", "example": "操作成功"},
                    "data": {"type": "object"}
                }
            }
        }
    }
}


SIMPLE_DOC = {
    "tags": ["API"],
    "summary": "API接口",
    "description": "API接口说明",
    "responses": {
        "200": {
            "description": "请求成功",
            "schema": {
                "type": "object",
                "properties": {
                    "code": {"type": "integer", "example": 200},
                    "message": {"type": "string", "example": "操作成功"},
                    "data": {"type": "object"}
                }
            }
        }
    }
}

# 为兼容性创建通用别名
CREATE_ORDER_DOC = SIMPLE_DOC
GET_ORDER_LIST_DOC = SIMPLE_DOC
GET_ORDER_DETAIL_DOC = SIMPLE_DOC
UPDATE_ORDER_DOC = SIMPLE_DOC
DELETE_ORDER_DOC = SIMPLE_DOC
CANCEL_ORDER_DOC = SIMPLE_DOC
GET_USER_ORDERS_DOC = SIMPLE_DOC

# 管理员相关
ADMIN_GET_ORDER_LIST_DOC = SIMPLE_DOC
ADMIN_UPDATE_ORDER_DOC = SIMPLE_DOC
ADMIN_DELETE_ORDER_DOC = SIMPLE_DOC
ADMIN_ORDER_STATS_DOC = SIMPLE_DOC

# 活动相关
CREATE_ACTIVITY_DOC = SIMPLE_DOC
GET_ACTIVITY_LIST_DOC = SIMPLE_DOC
GET_ACTIVITY_DETAIL_DOC = SIMPLE_DOC
UPDATE_ACTIVITY_DOC = SIMPLE_DOC
DELETE_ACTIVITY_DOC = SIMPLE_DOC
JOIN_ACTIVITY_DOC = SIMPLE_DOC

# 支付相关
CREATE_PAYMENT_DOC = SIMPLE_DOC
PAYMENT_NOTIFY_DOC = SIMPLE_DOC
GET_PAYMENT_STATUS_DOC = SIMPLE_DOC

# 横幅相关
GET_BANNER_LIST_DOC = SIMPLE_DOC
CREATE_BANNER_DOC = SIMPLE_DOC
UPDATE_BANNER_DOC = SIMPLE_DOC
DELETE_BANNER_DOC = SIMPLE_DOC

# 管理员相关
ADMIN_LOGIN_DOC = SIMPLE_DOC
GET_ADMIN_INFO_DOC = SIMPLE_DOC

# 仪表盘相关
GET_DASHBOARD_STATS_DOC = SIMPLE_DOC
GET_REVENUE_CHART_DOC = SIMPLE_DOC
GET_ORDER_CHART_DOC = SIMPLE_DOC